<?php

class Event {
	protected $values;
	
	public function __construct() {
		$this->values = array();
		
		$this->type = func_get_arg(0);
		
		for ( $i=1; $i<func_num_args(); $i+=2 ) {
			$this->{func_get_arg($i)} = func_get_arg(($i+1));
		}
	}
	
	public function __get($name) {
		return $this->values[$name];
	}
	
	public function __set($name, $value) {
		//if ( $name != 'type' ) {
			$this->values[$name] = $value;
		//}
	}
}
?>